﻿@model ProductAttributeOptionModel
@Html.ValidationSummary(false)
@Html.HiddenFor(model => model.Id)
@Html.HiddenFor(model => model.ProductAttributeId)

@if (ViewBag.RefreshPage == true)
{
    <script type="text/javascript">
        try {window.opener.document.forms['@(ViewBag.formId)'].@(ViewBag.btnId).click();}
        catch (e){}
        window.close();
    </script>
}
@(Html.LocalizedEditor<ProductAttributeOptionModel, ProductAttributeOptionLocalizedModel>("productattributes-localized",
    @<div class="form-body">
        <div class="form-group">
            <label class="control-label col-md-2">
                @Html.LangLabelFor(model => model.Locales[item].Name)
            </label>
            <div class="col-md-4">
                @Html.EditorFor(model => Model.Locales[item].Name, new { @class = "form-control" })
                @Html.ValidationMessageFor(model => model.Locales[item].Name)

            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-md-2">

            </label>
            <div class="col-md-4">
                @Html.HiddenFor(model => model.Locales[item].LanguageId)
            </div>
        </div>
    </div>,
    @<div class="form-body">
        <div class="form-group">
            <label class="control-label col-md-2">
                @Html.LangLabelFor(model => model.Name)
            </label>
            <div class="col-md-4">
                @Html.EditorFor(model => model.Name, new { @class = "form-control" })
                @Html.ValidationMessageFor(model => model.Name)

            </div>
        </div>
    </div>
))

<div class="form-group">
    <label class="control-label col-md-3">
        @Html.LangLabelFor(model => model.ColorSquaresRgb)
    </label>
    <div class="col-md-4">
        @Html.EditorFor(model => model.ColorSquaresRgb, new { @class = "form-control" })
        @Html.ValidationMessageFor(model => model.ColorSquaresRgb)

    </div>
</div>
@*@if (ViewBag.MultipleEnabled == true)
    {
        <div class="form-group">
            <label class="control-label col-md-3">
                @Html.LangLabelFor(model => model.Multiple)
            </label>
            <div class="col-md-4">
                @Html.EditorFor(model => model.Multiple, new { @class = "form-control" })
                @Html.ValidationMessageFor(model => model.Multiple)

            </div>
        </div>
    }*@


